
<?php

/**
 * Description of PersonPersonClass
 *
 * @author adhamhelal
 */
class ComNoteInfoPanel extends Qpanel {
	protected $mctComNote;
        //Controls
        public $lblId;
        protected $lblComNoteCreateBy;
	protected $lblComNoteCreateDate;
	protected $lblComNoteUpdateBy;
	protected $lblComNoteUpdateDate;
            //Template
        protected $strTemplate;

       public function __construct($objParentObject, $mctComNote, $strControlId = null) {
                // Call the Parent
                try {
                        parent::__construct($objParentObject, $strControlId);
                } catch (QCallerException $objExc) {
                        $objExc->IncrementOffset();
                        throw $objExc;
                }

                // Setup Template
                $this->strTemplate = __DOCROOT__.__PERSON__ .  '/tpl/qpanel.tpl.php';
                // Set the Person Meta Conrol
                $this->mctComNote = $mctComNote;



                // Call MetaControl's methods to create qcontrols data fields
                $this->lblId = $this->mctComNote->lblId_Create();
                $this->lblId->Name = QApplication::Translate("Note Id");
                $this->lblId->SetParentControl($this);


                $this->lblComNoteCreateBy = $this->mctComNote->lblCreateBy_Create();
                $this->lblComNoteCreateBy->Name = QApplication::Translate("Note Created By :");
                $this->lblComNoteCreateBy->SetParentControl($this);

                $this->lblComNoteCreateDate = $this->mctComNote->lblCreateDate_Create(null,QDateTime::FormatDisplayDateTimeFull);
                $this->lblComNoteCreateDate->Name = QApplication::Translate("Note Created Date :");
                $this->lblComNoteCreateDate->SetParentControl($this);

                $this->lblComNoteUpdateBy = $this->mctComNote->lblUpdateBy_Create();
                $this->lblComNoteUpdateBy->Name = QApplication::Translate("Note Update By :");
                $this->lblComNoteUpdateBy->SetParentControl($this);

                $this->lblComNoteUpdateDate = $this->mctComNote->lblUpdateDate_Create(null,QDateTime::FormatDisplayDateTimeFull );
                $this->lblComNoteUpdateDate->Name = QApplication::Translate("Note Update Date :");
                $this->lblComNoteUpdateDate->SetParentControl($this);


    }


}
?>


